All Packages Class Hierarchy This Package Previous Next Index
Class javax.media.j3d.BranchGroup
java.lang.Object
|
+----javax.media.j3d.SceneGraphObject
|
+----javax.media.j3d.Node
|
+----javax.media.j3d.Group
|
+----javax.media.j3d.BranchGroup
- public class BranchGroup
- extends Group
The BranchGroup serves as a pointer to the root of a
scene graph branch; BranchGroup objects are the only objects that
can be inserted into a Locale's set of objects.
-
ALLOW_DETACH
- For BranchGroup nodes, specifies that this BranchGroup allows detaching
from its parent.
-
BranchGroup()
-
-
compile()
- Compiles the source BranchGroup associated with this object and
creates and caches a compiled scene graph.
-
detach()
- Detaches this BranchGroup from its parent.
-
pickAll(PickShape)
- Returns an array referencing all the items that are pickable below this
BranchGroup
that intersect with PickShape.
-
pickAllSorted(PickShape)
- Returns a sorted array of references to all the Pickable items that intersect with the
pickShape.
-
pickAny(PickShape)
- Returns a reference to any item that is Pickable below this BranchGroup which
intersects with
pickShape
.
-
pickClosest(PickShape)
- Returns a SceneGraphPath which references the pickable item which
is closest to the origin of
pickShape
.
ALLOW_DETACH
public static final int ALLOW_DETACH
- For BranchGroup nodes, specifies that this BranchGroup allows detaching
from its parent.
BranchGroup
public BranchGroup()
compile
public final void compile()
- Compiles the source BranchGroup associated with this object and
creates and caches a compiled scene graph.
detach
public final void detach()
- Detaches this BranchGroup from its parent.
pickAll
public final SceneGraphPath[] pickAll(PickShape pickShape)
- Returns an array referencing all the items that are pickable below this
BranchGroup
that intersect with PickShape.
The resultant array is unordered.
- Parameters:
- origin - The origin of the ray
- direction - the direction of the ray
- See Also:
- SceneGraphPath, pickAll
pickAllSorted
public final SceneGraphPath[] pickAllSorted(PickShape pickShape)
- Returns a sorted array of references to all the Pickable items that intersect with the
pickShape. Element [0] references the item closest to origin of
PickShape successive array elements are further from the origin
- See Also:
- SceneGraphPath, pickAllSorted, PickShape
pickClosest
public final SceneGraphPath pickClosest(PickShape pickShape)
- Returns a SceneGraphPath which references the pickable item which
is closest to the origin of
pickShape
.
- See Also:
- SceneGraphPath, pickClosest, PickShape
pickAny
public final SceneGraphPath pickAny(PickShape pickShape)
- Returns a reference to any item that is Pickable below this BranchGroup which
intersects with
pickShape
.
- See Also:
- SceneGraphPath, pickAny, PickShape
All Packages Class Hierarchy This Package Previous Next Index